# encoding: utf-8

from utils import auto_binding


data = {
  "_id": "1100705552EA_jd:100039554695",
  "brand": "力易得/ENDURA",
  "brandModel": "E0207",
  "skuId": "1100705552EA",
  "skuName": "力易得 E0207 28件丝锥麻花钻套装",
  "bindSkuName": "力易得（ENDURA）E0207丝锥麻花钻套装28件套丝锥手动工具1套装",
  "bindSkuUrl": "https://item.jd.com/100039554695.html",
  "originPlatSkuId": "1100705552EA",
  "originPlatUrl": "http://www.stbchina.cn/item.html#?itemId=1100705552EA"
}

brand = data.get("brand", "")
sku_name = data.get("skuName", "")
bind_sku_name = data.get("bindSkuName")

material_ner_data = auto_binding.process_ner(sku_name)
bind_ner_data = auto_binding.process_ner(bind_sku_name)
judge_result = auto_binding.is_same_sku(data, material_ner_data, bind_ner_data, bind_sku_name)

print(judge_result)
